package com.yunxi.service.dubboService.impl.sys;

import com.yunxi.bizToBaseData.pojo.DictVO;
import com.yunxi.bizToBaseData.service.Dict2BizDubboService;
import com.yunxi.service.localService.sys.DictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

import java.util.List;

/**
 * Created by xuruzi on 2019/10/11.
 *
 * 根据类型查询对应的字典
 */
public class Dict2BizDubboServiceImpl implements Dict2BizDubboService {

    @Autowired
    @Qualifier(value = "dictServiceImpl")
    DictService dictService;

    @Override
    public List<DictVO> getDictListByType(String type) {
        return dictService.listByType(type);
    }
}
